#ifndef NET_H
#define NET_H

#include <type.h>

long do_net_recv(uintptr_t addr, size_t length, int num_packet, size_t* frLength);
void do_net_send(uintptr_t addr, size_t length);
void do_net_irq_mode(int mode);
void net_recv_memcpy(uintptr_t addr, int num_packet, size_t* frLength);

extern int net_poll_mode;

uintptr_t k_addr;
int packet_need;
int irq_num_received;
size_t* k_length;
uint32_t rx_len[32];

#endif //NET_H
